package org.example.wu_and_dian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.wu_and_dian.dto.response.AjaxResult;
import org.example.wu_and_dian.entity.Entity;

import java.util.List;

/**
* @author SS2613
* @description 针对表【entity(用于存储实体类的信息)】的数据库操作Service
* @createDate 2025-03-18 14:19:09
*/
public interface EntityService extends IService<Entity> {
    List<Entity> getByDocumentId(String documentId);

    boolean deleteById(String documentId,String id);

    AjaxResult createEntityInstance(Entity entity);

    AjaxResult updateEntityInstancesByEntityId(String documentId, String entityId, Boolean isChecked);

    AjaxResult updateEntityInstance(String instanceId, String documentId, Boolean isChecked);

    AjaxResult deleteEntityInstancesByEntityId(String documentId, String instanceId);
}
